TARGET := main

CC := gcc

SRC := $(wildcard *.c)
DEPEND := $(patsubst %.c, %.o, $(SRC))

$(TARGET) : $(DEPEND)
	$(CC) $^ -o $@ 

.PHONY:clean
clean:
	$(RM) $(TARGET) $(DEPEND) -r

